﻿using System;
using SocialFront.Providers.Member;

namespace SocialFront.UserControls.Membership
{
    public partial class MemberSignOut : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //Session.Abandon();
            //MemberProvider.Provider.RemoveMemberFromCache(MemberProvider.Provider.GetCurrentMember().Id);
            ////MemberCommands.SignOut();
            //MemberProvider.Provider.ClearMemberFromClient();
            //Response.Redirect(umbraco.library.NiceUrl(1096));

            MemberProvider.Provider.LogoutCurrentMember();

            Response.Redirect(umbraco.library.NiceUrl(Config.sfCommunityNodeId));
        }
    }
}